﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace ZK.Entity
{
    public class CodeRule
    {
        [Description("KEY")]
        public string Id { get; set; }


        [Description("规则类型")]
        public CodeRuleType CodeRuleType { get; set; }
        /// <summary>
        /// 长度
        /// </summary>
        [Description("长度")]
        public int CodeRuleLen { get; set; }

        /// <summary>
        /// 默认值
        /// </summary>
        [Description("默认值")]
        public string DefaultValue { get; set; }

    }

    public enum CodeRuleType
    {
        固定值,
        流水号,
        当前日期,
        时间戳,
        随机数,
        按日流水,
        按月流水
    }
}
